﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace ToDictionary
{
    public class ToDictionary
    {
        public Dictionary<string, string> ToDict(string configuration)
        {
            var config = new Config(configuration);

            return new Dictionary<string, string>();
        }

        internal IEnumerable< Setting > SplitIntoSettings(Config config)
        {            
            var splittedConfig = config.ConfigValue.Split(';');
            var settings = from x in splittedConfig
                           select new Setting(x);

            return settings;
        }

        internal Config MapStringToConfig(string config)
        {
            return new Config(config);
        }
    }
}
